
//flex 布局复用  @include position(fixed);
@mixin flex ($hov:space-between,$col:center){
    display: flex;
      justify-content: $hov;
      align-items: $col;
}


@mixin bgImg($w:0,$h:0,$img:'',$size:contain){
    display: inline-block;
    width: $w;
    height: $h;
    background: url($img) no-repeat center;
    background-size: $size;
    
}
// position(absolute,54%,50%,660px,auto);     @include position(fixed);

@mixin  position($pos:absolute,$top:0,$left:0,$w:100%,$h:100%){
    position: $pos;
    top:$top;
    left: $left;
    width: $w;
    height: $h;
}
// positionImg(absolute,23px,25px,14px,14px,'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1413717481,2050112124&fm=26&gp=0.jpg');
@mixin  positionImg($pos:absolute,$top:0,$right:0,$w:0,$h:0,$img:''){
    position: $pos;
    top:$top;
    right: $right;
    width: $w;
    height: $h;
    background: url($img) no-repeat center ;
    background-size: contain;
}
    
 